import 'package:series_play/comm/base/base_list_controller.dart';
import 'package:series_play/comm/base/page_state_controller.dart';
import 'package:series_play/bean/drama_simple_data.dart';
import 'package:series_play/comm/comm_constant.dart';
import 'package:series_play/net/api/drama_api.dart';
import 'package:series_play/utils/log.dart';

import '../../../comm/base/base_drama_controller.dart';

class HomeLatestController extends BaseListController<DramaSimpleData>
    with PageStateController , BaseDramaController{
  @override
  Future<List<DramaSimpleData>> onLoad(
    int page,
    int pageSize,
    bool isRefresh,
  ) async {
    final response = await DramaApi.instance.newDramaList(page, pageSize);
    return response.data ?? [];
  }
}
